package com.itheima.health.service.impl;

import com.itheima.health.dao.OrderDao;
import com.itheima.health.service.OrderService;
import com.itheima.health.util.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;

@Service
@Slf4j
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    //根据id查询预约信息
    @Override
    public Map findById(Integer id) {
        Map map = orderDao.findByIdDetail(id);
        return map;
    }
}
